package com.SpringBootStudy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 你好，世界
 *
 * @author SliverKiss
 * @apiNote
 * @date 2023/2/27
 */

@RestController
public class HelloWorld {
    /**
     * 向浏览页面输出"hello world"
     *
     * @return {@link String}
     */
    @GetMapping("/hello")
    public String hello() {
        return "<h1 style=\"color:red\">hello world</h1>\n";
    }


}
